package com.bbcare.followup.plat.entity;

import java.io.Serializable;

import javax.persistence.Entity;

import com.bbcare.comm.DateUtil;

/**
 * @name: 患者任务内容实体类
 * @author: DemonLee
 * @createTime: 2017.4.13
 * @description: 患者任务内容等
 * @modify:
 * 
 */

@Entity
public class PatientTaskContent implements Serializable {
    private static final long serialVersionUID = 1L;
    // 任务内容id
    private String id;
    // 任务id
    private String taskId;
    // 任务内容模板版本id
    private String templVersionid;
    // 更新时间
    private String updateTime;
    // 创建时间
    private String createTime;
    // 更新流水
    private String updateAccept;
    // 内容类型
    private String templType;
    // 患者id
    private String userId;
    // 患者队列实例id
    private String ptSchemeid;
    // 任务内容序列号，按升序排列
    private int seqNo;
    // 主诉登记规则：0 通用任务内容，整个周期内都是相同的问卷；1 月龄规则，每个月龄的主诉登记内容不相同......待扩展
    private String ruleType;
    // 同一任务下不同阶段任务内容优先级，升序排（用于线上主诉登记）
    private int priorityNo;
    // 开始执行日期
    private String beginDate;
    // 结束执行日期
    private String endDate;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTemplVersionid(String templVersionid) {
        this.templVersionid = templVersionid;
    }

    public String getTemplVersionid() {
        return templVersionid;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = DateUtil.getTimeStampSec(updateTime);
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = DateUtil.getTimeStampSec(createTime);
    }

    public String getCreateTime() {
        return createTime;
    }

    public String getUpdateAccept() {
        return updateAccept;
    }

    public void setUpdateAccept(String updateAccept) {
        this.updateAccept = updateAccept;
    }

    public String getTemplType() {
        return templType;
    }

    public void setTemplType(String templType) {
        this.templType = templType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPtSchemeid() {
        return ptSchemeid;
    }

    public void setPtSchemeid(String ptSchemeid) {
        this.ptSchemeid = ptSchemeid;
    }

    public int getSeqNo() {
        return seqNo;
    }

    public void setSeqNo(int seqNo) {
        this.seqNo = seqNo;
    }

    public String getRuleType() {
        return ruleType;
    }

    public void setRuleType(String ruleType) {
        this.ruleType = ruleType;
    }

    public int getPriorityNo() {
        return priorityNo;
    }

    public void setPriorityNo(int priorityNo) {
        this.priorityNo = priorityNo;
    }

    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

}
